# python3.9 以后
def process_items(items: list[str]):
    for item in items:
        # print(item.upper())
        print(item)


def process_items3(prices: dict[str, float]):
    for item_name, item_price in prices.items():
        print(item_name)
        print(item_price)


def process_items2(items_t: tuple[int, int, str], items_s: set[bytes]):
    return items_t, items_s


def str_test(one: str, two: str):
    return one.upper() + " " + two.upper()


class Person:
    def __init__(self, name: str):
        self.name = name


def get_person_name(one_person: Person):
    return one_person.name


def process_items4(items: list[str]) -> list[str]:
    return list(map(lambda item: "".join(reversed([c for c in item])), items))
    # return [lambda item: "".join(reversed([c for c in item])) for item in items]


def str_test2(one: str, two: str) -> tuple[str, str, int]:
    return one.upper(), two.upper(), 1


def str_test3(one: str, two: str) -> dict[str, str]:
    return {one: two}


print(str_test("aaa", 'bbb'))

process_items(["a", "2", "d"])

print(process_items2((1, 2, "abc"), set("abc")))

process_items3({"aa": 12.3, "bb": 34.8})

print(get_person_name(Person("Allen")))

print(process_items4(["abc", "234", "def"]))

print(str_test2("allen", "ok"))
print(str_test3("allen", "ok"))
